<?php
if($_POST['ac']=='lrc'){
$lrc=file_get_contents('http://www.xiami.com/song/'.intval($_POST['songid']).'');
preg_match('/<div[^>]*class="lrc_main"[^>]*>(.*?) <\/div>/si',$lrc,$blrc); 
$lrct=str_replace('收缩','',$blrc[0]);

$lrct=strip_tags($lrct);
$lrct='<div style="float:right;color:#369;cursor:pointer;" onclick="$(\'#lrc\').fadeOut(\'slow\')">关闭</div>'.$lrct;

if(!$blrc[0]) echo -1;
else echo $lrct;

}